/*
 * @Author: 小野岚 2369037721@qq.com
 * @Date: 2022-11-07 00:38:23
 * @LastEditors: 小野岚 2369037721@qq.com
 * @LastEditTime: 2022-11-09 11:29:46
 * @FilePath: \cq-work\vue-cq\vue.config.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const { defineConfig } = require('@vue/cli-service')
const path = require('path')
function resolve (dir) {
  return path.join(__dirname, dir)
}
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: true,
  configureWebpack: {
    resolve: {
      alias: {
        '@': resolve('src')
      }
    }
  },
  devServer: {
    host: '127.0.0.1',
    hot: true,
    port: 7878,
    open: true,
    compress: true
  }
})
